   /****** Object:  Database [TestDB]    Script Date: 08/08/2008 18:49:30 ******/
IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'TestDb')
CREATE DATABASE TestDb
GO

USE TestDB
Go

IF Not EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Book]') AND type in (N'U'))
CREATE TABLE [dbo].[Book](
[Bk_Id] [int] IDENTITY(1,1) NOT NULL,
[Author] [nvarchar](255) NOT NULL,
[Bk_Title] [nvarchar](255) NOT NULL,
[ISBN] [nvarchar](50) NOT NULL,
[LastUpdated] datetime NOT NULL,
CONSTRAINT [PK_Book] PRIMARY KEY CLUSTERED
(
[Bk_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO